<!DOCTYPE html>
<html lang="en">
<head>
  <title>Ch02-06 Buttons</title>
</head>

<body>
  <h1>Buttons</h1>
  <p>
    <button onclick="doSayHello();">Say Hello</button>
  </p>

  <script>
    function doSayHello() {
      alert("Hello");
    }

  </script>
</body>
</html>